package com.woniu.apartment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.apartment.mapper.ApartRulesRefMapper;
import com.woniu.apartment.domain.ApartRulesRef;
import com.woniu.apartment.service.IApartRulesRefService;

/**
 * 公寓规则对照Service业务层处理
 * 
 * @author yy
 * @date 2023-04-03
 */
@Service
public class ApartRulesRefServiceImpl implements IApartRulesRefService 
{
    @Autowired
    private ApartRulesRefMapper apartRulesRefMapper;

    /**
     * 查询公寓规则对照
     * 
     * @param id 公寓规则对照主键
     * @return 公寓规则对照
     */
    @Override
    public ApartRulesRef selectApartRulesRefById(Long id)
    {
        return apartRulesRefMapper.selectApartRulesRefById(id);
    }

    /**
     * 查询公寓规则对照列表
     * 
     * @param apartRulesRef 公寓规则对照
     * @return 公寓规则对照
     */
    @Override
    public List<ApartRulesRef> selectApartRulesRefList(ApartRulesRef apartRulesRef)
    {
        return apartRulesRefMapper.selectApartRulesRefList(apartRulesRef);
    }

    /**
     * 新增公寓规则对照
     * 
     * @param apartRulesRef 公寓规则对照
     * @return 结果
     */
    @Override
    public int insertApartRulesRef(ApartRulesRef apartRulesRef)
    {
        return apartRulesRefMapper.insertApartRulesRef(apartRulesRef);
    }

    /**
     * 修改公寓规则对照
     * 
     * @param apartRulesRef 公寓规则对照
     * @return 结果
     */
    @Override
    public int updateApartRulesRef(ApartRulesRef apartRulesRef)
    {
        return apartRulesRefMapper.updateApartRulesRef(apartRulesRef);
    }

    /**
     * 批量删除公寓规则对照
     * 
     * @param ids 需要删除的公寓规则对照主键
     * @return 结果
     */
    @Override
    public int deleteApartRulesRefByIds(Long[] ids)
    {
        return apartRulesRefMapper.deleteApartRulesRefByIds(ids);
    }

    /**
     * 删除公寓规则对照信息
     * 
     * @param id 公寓规则对照主键
     * @return 结果
     */
    @Override
    public int deleteApartRulesRefById(Long id)
    {
        return apartRulesRefMapper.deleteApartRulesRefById(id);
    }
}
